/**
 * @ author: 汪孟苹
 */
define(["jquery","template","bch/template/patientManager/nearFollowupUser.tpl"],function($,template,tpl){
	var ui = {};

	var drawQueue = function(data){
		return template("tpl_lossFollowupUser_queue",data);
	}
	var drawFollowupWarn = function(data){
		return template("tpl_lossFollowupUser_warnForm",data);
	}
	var drawfollowupWarn = function(data){
		return template("tpl_lossFollowupUser_form",data);
	}

	/**
	 * 队列
	 */
	ui.queue = function(options){
		$("#"+options.id).html(tpl.queue());
		var h = drawQueue(options);
		$("#"+options.id).html(h);
	}
	/**
	 * 提醒
	 */
	ui.followupWarn = function(options){
		options.dom.html(tpl.followupWarn());
		var h = drawFollowupWarn(options);
		options.dom.html(h);
	}
	/**
	 * 提醒表单
	 */
	ui.followupWarnInit = function(options){
		options.dom.html(tpl.followupWarnInit());
		var h = drawfollowupWarn(options.list);
		options.dom.html(h);
	}
	
	return ui;
});